package com.example.data.factory.mapper.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.data.factory.entity.entity.DataAssetCatalog;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lhy
 * @since 2025-03-03
 */
public interface DataAssetCatalogMapper extends BaseMapper<DataAssetCatalog> {
    @Select("SELECT d2.classify_id from data_asset_info d1 left join data_asset_catalog d2 on d1.id = d2.data_asset_id where d1.id = #{id}")
    int search(Integer id);
}
